item->prelight
is always equal to
iconview->priv->last_prelight == item
so there is no need to track it separately.
{
if (item != NULL)
{
- item->prelight = TRUE;
gtk_icon_view_queue_draw_item (icon_view, item);
}
if (last_prelight_item != NULL)
{
- last_prelight_item->prelight = FALSE;
gtk_icon_view_queue_draw_item (icon_view,
icon_view->priv->last_prelight);
}
flags |= GTK_CELL_RENDERER_SELECTED;
}
- if (item->prelight)
+ if (item == priv->last_prelight)
{
state |= GTK_STATE_FLAG_PRELIGHT;
flags |= GTK_CELL_RENDERER_PRELIT;
gint row, col;
- guint prelight : 1;
guint selected : 1;
guint selected_before_rubberbanding : 1;